//main.cpp
#include "flyweight.h"
#include "flyweight_factory.h"
#include <iostream>

int main(int argc,char* argv[])
{
    FlyweightFactory* fc = new FlyweightFactory();
    Flyweight* fw1 = fc->GetFlyweight("hello");
    Flyweight* fw2 = fc->GetFlyweight("world!");
    Flyweight* fw3 = fc->GetFlyweight("hello");

    delete fc;
    return 0;
}
